const MessagesProxy = require('../proxy/messages')

exports.sendTo = function(to, options) {
  const envelope = {
    to,
    from: options.from || 0,
    title: options.title || '默认标题',
    direction: options.direction || ''
  }
  return MessagesProxy.addMessage(envelope)
}
